lst = [3, 5, 1, 6, 7, 34, 9, 2, 6, 8]


print("请输入一个数: ", end="")
enter = int(input())
lst_output = []

# 标识符
flag = 0
for i in range(len(lst)):
    for j in range(i + 1, len(lst)):
        if lst[i] + lst[j] == enter:
            flag = 1
            lst_output.append(i)
            lst_output.append(j)
            break
if flag == 1:
    print(lst_output[0], lst_output[1])
else:
    print("Sorry")




